<div class="container-fluid">
    <h2>Create a new subject for the course</h2>
    <hr />
    <?php $courses = $viewModel->get("courses"); 
    ?>
    <?php include 'views/Include/alert.php'; ?>
    <form class="form-horizontal" method="POST">
        <div class="control-group">
            <label class="control-label" for="inputsubject_name">Subject Name</label>
            <div class="controls">
                <input type="text" id="inputsubject_name" name="subject_name" placeholder="subject_name" required="required">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="inputCourseID">Course</label>
            <div class="controls">
                <select id="inputCourseID" name="courses_id">
                    <?php
                    foreach ($courses as $course) {
                        echo "<option value='" . $course->courses_id . "'>" . $course->courses_name . "</option>";
                    }
                    ?>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="inputStatus">Status</label>
            <div class="controls">
                <select name="status">
                    <option value="0">Deactive</option>
                    <option value="1">Active</option>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="inputKeywords">Keywords</label>
            <div class="controls">
                <input type="text" id="inputKeywords" name="keyword" placeholder="Keywords" >
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="inputDescription">Description</label>
            <div class="controls">
                <textarea id="inputDescription" class="editor_noimage" name="description" placeholder="Description" style="margin: 0px; height: 167px; width: 457px;"></textarea>
            </div>
        </div>

        <div class="control-group">
            <div class="controls">
                <button type="submit" class="btn btn-success">Submit</button>
            </div>
        </div>
    </form>
</div>